import 'package:flutter/material.dart';

class Contact {
  const Contact({
    @required this.avatar,
    @required this.name,
    @required this.nameIndex,
  });

  final String avatar;
  final String name;
  final String nameIndex;
}

class ContactsPageData {
  final List<Contact> contacts = [
    const Contact(
        avatar: 'https://randomuser.me/api/portraits/men/53.jpg',
        name: 'Maurice Sutton',
        nameIndex: 'M'),
    const Contact(
        avatar: 'https://randomuser.me/api/portraits/women/76.jpg',
        name: 'Jerry',
        nameIndex: 'J'),
    const Contact(
        avatar: 'https://randomuser.me/api/portraits/men/1.jpg',
        name: 'Tencon',
        nameIndex: 'T'),
    const Contact(
        avatar: 'https://randomuser.me/api/portraits/women/17.jpg',
        name: 'Toney',
        nameIndex: 'T'),
    const Contact(
        avatar: 'https://randomuser.me/api/portraits/women/55.jpg',
        name: 'Yellow',
        nameIndex: 'Y'),
    const Contact(
        avatar: 'https://randomuser.me/api/portraits/men/20.jpg',
        name: 'Dangdang',
        nameIndex: 'D'),
    const Contact(
        avatar: 'https://randomuser.me/api/portraits/women/25.jpg',
        name: 'Teddy',
        nameIndex: 'T'),
    const Contact(
        avatar: 'https://randomuser.me/api/portraits/women/26.jpg',
        name: 'Carry',
        nameIndex: 'C'),
    const Contact(
        avatar: 'https://randomuser.me/api/portraits/women/22.jpg',
        name: 'Jia jia',
        nameIndex: 'J'),
    const Contact(
        avatar: 'https://randomuser.me/api/portraits/men/16.jpg',
        name: 'Steave',
        nameIndex: 'S'),
    const Contact(
        avatar: 'https://randomuser.me/api/portraits/women/1.jpg',
        name: '张益达',
        nameIndex: 'Z'),
    const Contact(
        avatar: 'https://randomuser.me/api/portraits/men/9.jpg',
        name: '黄腾去',
        nameIndex: 'H'),
  ];

  static ContactsPageData mock() {
    return ContactsPageData();
  }
}
